package com.ziytek.web.citizen.model.bean;

import com.ziytek.web.citizen.util.StringUtil;
import lombok.Builder;
import lombok.Data;

/**
 * @author fenghx
 * @version 1.0
 * @className IssuedLimit
 * Description:
 * @date 2024/5/24 15:12
 */
@Data
@Builder
public class IssuedLimit {
    private String commandFlag;
//    private List<String> boardNoHexList;
//    private int boardNo;
//    private int channelNo;
    private int voltage;
    private int current;
    private int limit;
    private int timestamp;

    public boolean limitError() {
        return StringUtil.hasOneEmpty(commandFlag, current, voltage, limit);
    }
}
